package com.clps.digital.dao.impl;

import com.clps.digital.dao.WealthManagementDao;
import com.clps.digital.model.entity.WealthManagement;
import com.clps.myssm.basedao.BaseDAO;

/**
 * @Author: 小炎子
 * @Date: 2024/9/3 下午3:55
 * @Description: 理财dao实现类
 **/
public class WealthManagementDaoImpl extends BaseDAO<WealthManagement> implements WealthManagementDao {
    @Override
    public void save(WealthManagement wealthManagement) {
        insertOrUpdate("INSERT INTO dbo.[wealth_management] ([currencyId], [userId], [rate], [expirationTime]) VALUES (?, ?, ?, ?)", wealthManagement.getCurrencyId(),wealthManagement.getUserId(),wealthManagement.getRate(),wealthManagement.getExpirationTime());
    }
}
